package org.world.applicaiton.sheep.command;

import org.springframework.stereotype.Service;
import org.world.domain.aggregate.animal.constant.GenderEnum;
import org.world.domain.aggregate.sheep.SheepAggregate;
import org.world.domain.service.GiveBirthSheepDomainService;

import javax.annotation.Resource;

@Service
public class SheepApplicationService {
    @Resource
    private SheepAggregate sheepAggregate;

    @Resource
    private GiveBirthSheepDomainService giveBirthSheepDomainService;

    public void giveBirth(Long pregnantSheepId) {
        giveBirthSheepDomainService.handle(pregnantSheepId, GenderEnum.MALE);
    }
}